
<div class="content">
	<div class="content_i">
    <?php		
        echo CHtml::beginForm(array($this->controller_id."/save"),"post", array("id"=>"form_edit"));
		echo "<h2>";
		echo CHtml::image(Yii::app()->baseUrl."/assets/icon/icon-16-image.png");
		echo " Images";
		echo "</h2>";
		echo "<table cellpadding='3' cellspacing='0 border='0' width='100%'>";
	
			echo "<tr>";
				echo "<td class='label' width='120'>"."Thư mục"."</td>";
				echo "<td>";
					echo CHtml::textField("image_folder", $row["image_folder"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
			
			echo "<tr>";
				echo "<td class='label' width='120'>"."Kiểu file "."</td>";
				echo "<td>";
					echo CHtml::textField("image_filetype", $row["image_filetype"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
			
			echo "<tr>";
				echo "<td class='label' width='120'>"."Kích thước (KB)"."</td>";
				echo "<td>";
					echo CHtml::textField("image_filesize", $row["image_filesize"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
		echo "</table>";
		
		//Videos
		echo "<h2>";
		echo CHtml::image(Yii::app()->baseUrl."/assets/icon/icon-16-video.png");
		echo " Videos";
		echo "</h2>";
		echo "<table cellpadding='3' cellspacing='0 border='0' width='85%'>";
	
			echo "<tr>";
				echo "<td class='label' width='120'>"."Thư mục"."</td>";
				echo "<td>";
					echo CHtml::textField("video_folder", $row["video_folder"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
			
			echo "<tr>";
				echo "<td class='label' width='120'>"."Kiểu file "."</td>";
				echo "<td>";
					echo CHtml::textField("video_filetype", $row["video_filetype"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
			
			echo "<tr>";
				echo "<td class='label' width='100'>"."Kích thước (KB)"."</td>";
				echo "<td>";
					echo CHtml::textField("video_filesize", $row["video_filesize"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
		echo "</table>";
		
		//Audios
		echo "<h2>";
		echo CHtml::image(Yii::app()->baseUrl."/assets/icon/icon-16-audio.png");
		echo " Audios";
		echo "</h2>";
		echo "<table cellpadding='3' cellspacing='0 border='0' width='85%'>";
	
			echo "<tr>";
				echo "<td class='label' width='120'>"."Thư mục"."</td>";
				echo "<td>";
					echo CHtml::textField("audio_folder", $row["audio_folder"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
			
			echo "<tr>";
				echo "<td class='label' width='100'>"."Kiểu file "."</td>";
				echo "<td>";
					echo CHtml::textField("audio_filetype", $row["audio_filetype"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
			
			echo "<tr>";
				echo "<td class='label' width='100'>"."Kích thước (KB)"."</td>";
				echo "<td>";
					echo CHtml::textField("audio_filesize", $row["audio_filesize"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
		echo "</table>";
		
		
		//File
		echo "<h2>";
		echo CHtml::image(Yii::app()->baseUrl."/assets/icon/icon-16-copy.png");
		echo " Documents";
		echo "</h2>";
		echo "<table cellpadding='3' cellspacing='0 border='0' width='85%'>";
	
			echo "<tr>";
				echo "<td class='label' width='120'>"."Thư mục"."</td>";
				echo "<td>";
					echo CHtml::textField("file_folder", $row["file_folder"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
			
			echo "<tr>";
				echo "<td class='label' width='100'>"."Kiểu file "."</td>";
				echo "<td>";
					echo CHtml::textField("file_filetype", $row["file_filetype"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
			
			echo "<tr>";
				echo "<td class='label' width='100'>"."Kích thước (KB)"."</td>";
				echo "<td>";
					echo CHtml::textField("file_filesize", $row["file_filesize"], 
					array('style'=>'width:400px'));
				echo "</td>";
			echo "</tr>";
			
			echo "<tr>";
				echo "<td>"."</td>";
				echo "<td>";
					echo "<div class='space_5'></div>";
					
					echo 
						"<div class='button' id='button_submit'>" .

							"<div style='float:left; width:20px;'>" .
								CHtml::image(Yii::app()->baseUrl."/assets/icon/icon-16-save.png") .
							"</div>" .
							"<div style='float:left; min-width:40px;font-weight:bold'>".
								"Save" .
							"</div>" .
						"</div>";
						
					echo " ";
					
					echo 
						"<div class='button' id='button_cancel'>" .
							"<div style='float:left; width:20px;'>" .
								CHtml::image(Yii::app()->baseUrl."/assets/icon/icon-16-check.png") .
							"</div>" .
							"<div style='float:left; min-width:50px;font-weight:bold'>".
								"Reset" .
							"</div>" .
						"</div>";
						
				echo "</td>";
			echo "</tr>";
				
		echo "</table>";
		echo CHtml::endForm();
	?>
    </div>
</div><!-- end div right -->

<script language="javascript">
$(document).ready(function(){

	$('#button_submit').click(function(){
		$('#form_edit').submit();
	});
	
	$('#button_cancel').click(function(){
		$('#form_edit')[0].reset();
	});
	
});
</script>